CTMSocial
CTMSocial
Functionality
A plugin written to make CTM gameplay more of a social experience. This plugin was designed and tested using Vechs Super Hostile maps.
- Announces when players first find the wools in the chests
- Announces when players place the blocks on the Victory Monument
- Keeps a log of who returned what accessible via /vm
Tested with:
- Waking Up
- Spellbound Caves
Example /vm output
Example VM placement announcement
Permissions
These are only relevant for managing CTM enabled worlds, anyone can use /vm * *ctm. ** * Being an OP
Commands
- /ctm View the main menu for management functions
- /vm View the current blocks on the VM
Example installation
Say you want to play Vech's Super Hostile map "Waking Up". Welp, load up the world on your server. You may use Multiverse to do so (I do), however you choose to do so is beyond the scope of this plugin, but do so :P
Once loaded up, simply issue the following command to enable CTMSocial listening for that map: /ctm world enable WakingUp This obviously assumes you named your map WakingUp. I recommend naming it something simple, and one word with no spaces (although it should work with them)
Welp, that's it! Start playing! If you bork the map and decide to start over with a fresh copy, simply do /ctm world reset WakingUp. This will completely forget all the stats for the world so you can start over.
You can also disable listening on the world later with /ctm world disable WakingUp.
To view a list of all currently enabled CTMSocial worlds, issue /ctm world list.
Configuration File
Very self explanatory.
CTM Social Configuration:
Enabled Worlds:
Announce wool finds: true
Announce Victory Monument place: true
Bugs
There will undoubtedly be compatibility issues with CTM maps because there is no universal standard for the Victory Monument. I'd like to support as many maps as I can without hindering the accuracy of the plugin. If you find a map that this plugin doesn't work for, I will do my best to add support if feasible. I plan to do a lot more testing
CTM Map Architects
-
Found wool event is fired when a player opens a chest with a colored wool in it for the first time. It's unlikely that this event will fire inaccurately unless the map contains sheep, in which the white wool event may fire incorrectly if a player opens a chest containing white wool.
-
The victory monument event is a bit more in depth. For this event to fire, the block must be placed on glass, and the wool/block must have a wall sign directly above it with text corresponding to the block type. My plugin currently looks for signs with the following text for blocks:
White Wool, Orange Wool, Magenta Wool, Light Blue Wool, Yellow Wool, Lime Wool, Pink Wool, Gray Wool, Light Gray Wool, Cyan Wool, Purple Wool, Blue Wool, Brown Wool, Green Wool, Red Wool, Black Wool, Redstone Ore, Gold Block, Iron Block, Diamond Block
If you'd like to make your VM compatible with this plugin, just make sure the bottom block is glass, and there is a wall sign directly above it with the text I've listed above. (I can also update the plugins dictionary to look for signs that may be worded slightly differently. If this is the case, please let me know.)
Developers
I plan on providing an API for the two events my detection plugin fires, but this hasn't been started yet. This will be so other plugins can easily hook into my VM detection code and perhaps give the players potions or items (whatever really) when my plugin detects the event.
@n64kev
The sign enchantments worked at one point, then on another map they didn't, so I'm not sure what the deal with that is.
I thought about having users configure blocks for the VM but I wanted it to be really simple to set up. If there's ever a need for such a configuration I could probably implement one though.
This plugin looks very good. If my server was a 1.3.1 I'd definitely download this. I dont see this as being for huge servers since this is for Vech Super Hostile maps or maps made like his, but this would be great for private servers. I dont know anything about coding but this could be more widely used if you could also set what blocks you use for the VM. Anyway I hope Vechs gets back to you and i hope you keep up the good work. :D Also i have a question about the super hostile maps on multiplayer servers, do the battle signs work for anyone else or do they not have sign enchantments in multiplayer?
@masa_
My stance on this plugin right now is that it's essentially dead. I've tried to contact Vechs himself three times with no response at all, so I'm assuming he's just not at all interested in the idea of this.
Unless there's a source of interest for this for the community, I probably won't be doing any more coding on this.
Seems great, I'll definately give it a try when I start playing the Super Hostile series in the near future!
A small idea/suggestion regarding the (White) Wool false positives: Have you considered adding those non-goal chests containing white wool to a ignore list (based on chest coordinates?)? You could check for such a chest based on when the player opens a chest and has white wool in his inventory or when the player is placing the wool in the chest.
Or maybe more generally: a chest is added to the ignore list when it is first opened. (_After_ first checking the 'found wool' event.) Meaning that if the chest contained wool when it was opened AND the chest is not on the ignore list, then it is a legit wool chest.
Anyway, just some quick thoughts. Keep up the good work! :)