openplanet-nl / plugin-signing

The place to request plugin signatures.
7 stars 1 forks source link

Voting Plugin #44

Closed DennisWillers closed 3 years ago

DennisWillers commented 3 years ago

Plugin description

Description

Finally you have the possibility to vote tracks! As you may know it from TMN, you can give ratings from --- to +++ via chat or via the plugin. You will also see how many players have voted for the map in total. In addition, the average rating is displayed in stars and in a number. This is a global vote manager. It doesn't matter if you play solo or on a server. You can always see the current voting status of the current map.

Features

Limits

Star definition

The following star scale was defined for the voting plugin:

Scale Stars
92-100 5
83-91 4.5
74-82 4
64-73 3.5
55-63 3
45-54 2.5
36-44 2
27-35 1.5
18-26 1
9-17 0.5
0-8 0

Source Code

The source code for the backend project can be found here: https://git.willers.digital/Dennis.Willers/voting

The source code for the plugin can be found here: https://git.willers.digital/Dennis.Willers/voting-plugin

Did you provide a perms meta value or a #perms preprocessor option?

no

Did you use Permissions.as?

no

Attach your plugin

Voting.zip

codecat commented 3 years ago

There's a .op file in your .op file 😅

You didn't want to reserve a site ID for this plugin?

Also side note, you do .get_Length() instead of .Length.

DennisWillers commented 3 years ago

Hups 😅 Yeah I can reserve an ID. I do it when I'm back home :) What is the different between Get_Length() and Length() ?

codecat commented 3 years ago

There's no difference in functionality, but when a method is prefixed with get_, that means it's a property getter that you can just get as if it were a property.

DennisWillers commented 3 years ago

Changed it :) I forgot to add at one place a permission question. I have add it now. So: "Did you provide a perms meta value or a #perms preprocessor option?" YES

EDIT: Deleted print statements

Voting.zip

codecat commented 3 years ago

You didn't actually reserve the ID 😅 But that's okay, here's the signed plugin:

Voting.zip

If you wanted to actually reserve an ID, you could've click to upload a new plugin on the site and mark it as a draft. 👍

DennisWillers commented 3 years ago

Thank you! I will remember for next time :)