Flexo013 / HeadsWebsite

Issue tacker for the website http://heads.freshcoal.com/
0 stars 0 forks source link

Create Heads Plugin 1.0 #4

Open Flexo013 opened 9 years ago

Flexo013 commented 9 years ago

What if we made a plugin that would have a command like /spawnhead <headID>? It would connect to the database to get the right command and give the player the head from the head ID they entered. A player would get this command by right clicking the head and selecting 'Get plugin command!'.

Plugin Plan

(Edit where necessary.)

Plugin Name: To be decided

Commands for the plugin: /spawnhead <headID> with alias /sh

Permission nodes: pluginName.spawnhead

Config: Not necessary at the moment.

Problems to keep in mind: -Bukkit might stop soon, so once Sponge gets released we should try to make a Sponge version too.

Possible additions: -Add a command /listheads <category> which would give you a tabbed list of all heads and head IDs for that category. (Potentially use paging.)

Plugin's Internal Workings:

Fancypants commented 9 years ago

Made an API today for the plugin,

User collection: http://heads.freshcoal.com/api.php Main collection: http://heads.freshcoal.com/mainapi.php

You can use it like this: For main collection category .../mainapi.php?query=CATEGORYNAME For user collection .../api.php?query=HEADNAME Categories are: food, devices, misc, wood, interior, color, blocks, games, mobs, characters and pokemon . We still need to adjust some category names though.

I will write some ideas I had of the plugin later today.

Flexo013 commented 9 years ago

Looks good and very usable. I still think it would be nice if we could find a way for people to spawn a head without them having to know the name of said head. A head might not have a name and the user might not know the account that was used to create it, which would mean that they can see the head on the website but not get it using the current API features.