Zamirathe / ZaupFeast

Feast Rocket Plugin for Unturned 3.0
Other
0 stars 10 forks source link

Adding commands to ZaupFeast #2

Closed Nicholaiii closed 9 years ago

Nicholaiii commented 9 years ago

I've added three user commands, at least one of them asked for on dev.rocket, as well as some minor changes;

runfeast - starts the feast right away resetfeast - resets the feast setfeast - set feast location

They all work as expected. setfeast takes a location from the config unless (by using the f param) forced to accept a maplocation.

I've added three functions to the main class, getLocations, getMapLocations and setNextLocation, the first two returns the private variables of the same name and the last one sets the private variable of the same name. These are used in the setfeast command.

I've added a Utils class for a Respond function to send a message back to the caller of the command, be it either console or player, without worrying about the caller in the commands themselves. It takes a caller argument and a message, and sends the response to either log (if console) or player.

Also i've made the readme a bit easier to read and added descriptions for the commands.

Zamirathe commented 9 years ago

As I am making some modifications to the feast, I will not be merging this.