Configuration, commands and permissions
Configuration, commands and permissions
Configuration
Move the plugin to your plugins folder and start your server. The file SimpleRP/config.yml will be created. It's the default configuration file, you can only change the texts and ranks informations or do an advanced configuration with customization. The config.yml file will look like this :
Default config.yml file
# Economy configuration purse: # Waiting time in minute before update of the real item's prices # The time value is randomly generated between min and max update: min: 30 max: 120 player: # Amount of money when the player wallet is created open_wallet: 500 # Strings customization texts: purchase_title: "Purchase" sale_title: "Sale" transaction_failed: "Transaction failed." money_name: "Coins" price: "Price" # Textures customization textures: # Logo of the money # A squared picture resized to 16x16 money: "http://dissatisfaction.fr.nf/projects/spout/gold.png" # Background of the transaction window # Size defined by (w_slots*slot_size)x(20+(h_slots+1)*2*size_slot) # default value recommended transaction_window: "http://dissatisfaction.fr.nf/projects/spout/transaction.png" # Sounds customization sounds: # The sound played when the transaction is successful end_transaction: "http://dissatisfaction.fr.nf/projects/spout/coins.mp3" # Window customization transaction: # Number of horizontal and vertical slots for an inventory # default values recommended w_slots: 9 h_slots: 3 # Slot squared size # default value recommended slot_size: 16 # Teleporter configuration teleporter: price: # Basic price for a teleportation min: 5 # Increase price per block per_block: 0.1 # Strings customization texts: # Title of the teleportation window title: "Teleporter" # Sounds customization sounds: # The sound played when a player spawn or despawn while a teleporation spawn: "http://dissatisfaction.fr.nf/projects/spout/tp_spawn.mp3" despawn: "http://dissatisfaction.fr.nf/projects/spout/tp_despawn.mp3" # Darkness configuration darkness: enabled: true # The darkness value is a float between 0 and 1 # Amount of darkness added per hour increase_per_hour: 0.05 # Amount subtracted per point earned by a player decrease_per_point: 0.01 # Strings customization texts: # String over the darkness bar darkness: "Darkness" # Textures customization textures: # Bar filler for the darkness bar # A picture of 2x16 (will be extended horizontally over the background bar) # default value recommended bar: "http://dissatisfaction.fr.nf/projects/spout/bar.png" # Background darkness bar # A picture of 150x16 # default value recommended background_bar: "http://dissatisfaction.fr.nf/projects/spout/background_bar.png" # Ranks of the players # Will be displayed to the left of player name # Each line : the text and the score who must be achieved ranks: "First blood": 1 "Second blood": 2 "Third blood": 3 "Bad guy": 10 "Flesh eater": 50 "Blood lover": 100 "Killer": 500 "Undertaker": 1000 # Points given by a hostile mob on death # By default, 1 point is given for all the mobs # The name of the mobs are defined by the bukkit entity names mobs: "Enderman": 5 "Spider": 2 # Music area configuration music_area: # Update time (seconds) update: 5 # Fade out time in milliseconds fade_out: 2500 # Data storage configuration data: # Interval in minute for save data to the disk autosave: 10
Textures and sounds are hosted to my server, I recommend you to make a copy of the files and modify URLs to your http server. If my server is down one day, you may be impacted. You can also modify the file or create yours.
Commands and Permissions
| command | description | permission |
|---|---|---|
| /srp purse | Display the actual purse prices | simplerp.view.purse |
| /srp price [new_price] | Get/Set the price of the item in hand | simplerp.edit.price |
| /srp npcinventory <npc_id> | Edit the npc inventory | simplerp.edit.npc.inventory |
| /srp npcnetwork <npc_id> <network_name> | Set the network of a npc teleporter | simplerp.edit.npc.network |
| /srp network <list/add/remove/network_name> < /name/name/<list/add/remove> < /name/id>> | Edit the networks and the locations of each network | simplerp.edit.network |
| /srp voice <npc_id> <list/add/remove> < /url/id> | Edit the voices of a npc with voice trait | simplerp.edit.voice |
| /srp darkness [new_darkness] | Get/Set the darkness, float value between 0 and 1 | simplerp.edit.darkness |
| /srp cresus | Become rich very rich, like cresus | simplerp.cheat.cresus |
| /srp musicarea <list/add/remove> [radius] [url] | Add a music area with given radius around your location who will play the url when player enter | simplerp.edit.musicarea |
Comments