Author Topic: [ALL] VillageMod v1.10 - Combined all in one plugin. [B9]  (Read 5140 times)

0 Members and 1 Guest are viewing this topic.

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
[ALL] VillageMod v1.10 - Combined all in one plugin. [B9]
« on: October 10, 2011, 08:39 AM »



VillageMod Plugin version 1.10
Works with Canary B9 and Minecraft 1.8.1





First to explain what this is. Its not really "A" plugin but more of a server modification or many plugins all combined into one. The reason this was created is because i wanted full control over my server to customize it to my liking as an Admin. I didn't like hunting for many plugins and then only liking about half of what the plugin did. I first created this while using B4, plugins like iCShop were becoming obsolete, LWC was not easy for newbies to use, CuboidPlugin wasn't being supported anymore, and none of the plugins i found offered a simple easy way to control protected areas. Keep in mind, i customized this to my admin style, with the main focus being making the server automated. Everything players can do on their own without asking an admin for any assistance. So i admit this might not be for everyone. But for those who want to try it...

The next several post will explain the features and commands and hopefully i have not forgotten anything. If anyone has any request let me know. I designed this for myself without thinking about much customization for others. I have already created a way to disable some of the features in the config. Depending on how much people like this, i will be willing to keep adding features and adding customization.

If you want to see a live demo of the plugin in action it running on minecraftvillage.com
« Last Edit: May 10, 2012, 04:58 AM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #1 on: October 10, 2011, 08:39 AM »



SERVER-WIDE POLICY CHANGES

This is a list of features and policies that are not commands but change the behavior of the server.





  • Idle time out kick. If the player is AFK it will kick them. You can set how many minutes or disable in config.
  • Anti chat spam. More then 2 messages per second mutes the player for 2 minutes. More then 5 messages per second mutes the player for an hour. This was mainly to target people using mods to mass spam your chat with 100 messages per second trying to crash the server.
  • Lava buckets and flint/steel fires can only be placed by players in a zone they are allowed in to prevent griefing.
  • Flint and steel can only be used once then its taken away to reduce griefing.
  • A public announcement is made anytime a player starts a fire or places a lava bucket. This is to reduce greifing so someone can't secretly burn down something. Can be disabled in config.
  • Redstone torches will not toggle on/off by circuits. Basically blinking. It only takes between 50 and 100 blinking torches to send your server CPU near 100%. This can be disabled in the config if you want to allow red torches to blink.
  • Double doors open and close together when power is supplied to the door on the left hand side.
  • Levers act as fluid gates. If you place a lever next to flowing water or lava and turn it on, the flow will stop. Turn it off and it will start flowing again. Its like a sink faucet.
  • Auto harvesting cactus farms are block by not allowing users to place blocks next to a cactus. Huge farms can lag your server. This can be disabled in config.
  • Players are not allowed to place TNT above a set Y height. You set the height in the config. This stops griefers from destroying buildings or landscape but still allows players to use TNT for mining. If someone tries to place TNT above the set Y height two mobs will spawn and attack them calling them a griefer. You can set the mob type in the config.
  • Players are automatically paid when mining diamond, gold or iron. You set how much to pay for each type or disable in the config. Because they are paid for mining ore it will drop the gold or iron as ingot instead of ore so they can't replace the block and mine it again for another payment.
  • Breaking stairs (ID 53,67,108,109) will drop stairs instead of the full block.
  • Breaking stone with a diamond pick axe will drop a stone block. Using any other type of pick axe will still drop cobblestone.
  • If you break giant mushroom blocks with shears it will drop the block so you can pick it up.
  • White trees are apple trees. Breaking their leaves will randomly drop red apples.
  • Infinite items, with quantity set to -1, will be removed from players inventories when they connect and it will remove them from chest if placed inside.
  • You can set in config to block players from flying. Then you can use the /fly command to allow only certain people to fly. This anti fly feature will not kick people but if it detects them flying more then 7 blocks it will just teleport them back to before they started flying. There is an exception inside zones. You can set in the config to display a warning message when they are detected flying.
  • There was an anti speed hack prior to B9 but due to the new 1.8.x ping feature in vanilla minecraft causing lag the server clock is not as reliable and some players were being caught for speeding when it was only lag. This feature is currently disabled.
  • You can set a world boundary in the config that will stop players from exploring past that point. This is mean to stop players from bloating your map by traveling extreme distances. Example: If you set it to 5000 then players can only travel between X:-5000 to X:5000 and Z:-5000 to Z:5000. This does not apply to admins and can be disabled in the config.
  • Creepers never cause explode damage inside of zones.
  • Creepers do not cause explode damage outside above ground. They will still explode indoors or underground. This is to reduce creeper griefing to your landscape so you dont end up with dozens of craters everywhere. This can be disabled in the config.
  • Has built in death announcements. It is suggested to disable the vanilla death notices or you will get double announcements.
  • Player stats are kept such has hours played, mobs killed, players killed, times died, etc. You can view stats with the /stats command.
  • Players locations are saved when they disconnect and they are teleported back to that location when the connect overriding where the server tries to put them. This is so they stay where they were and not end up spawning up on the roof or something.
  • You can set a mob spawn limiter. This is to stop players from making huge monster traps that might lag your server. You set in the config how many mobs are allowed to spawn within a set distance.
  • Default player connected message has been modified announce newbies, show their clan name and if they have a bounty on their head. No connected message is shown when admins connect.
  • You can set in config to display mod anti cheat codes when a player connects. Example: -xr no-z-cheat no-z-fly
  • Rain has been turned into acid rain. If a player is caught in the rain it will slowly eat through their skin and give minor damage. Ofcourse if they have a full food bar its not a big deal as it will heal at the same time. Also wearing a full armor set will protect you from the acid rain. Acid rain can be disabled in the config. One known issue is the effects are in all biomes. Players in the desert will still be effected by acid rain even though graphically there is no rain falling. Snow will be acid snow and still cause damage.
  • High ping auto kicking. If a player has lag and a high ping the server will auto kick them. Pings are checked every 10 seconds. You set in the config at what ping value you want them kicked or you can disabled it.
  • Minecarts and tracks have been changed to work as public transportation.

- Carts are spawned free on a power rail if a player punches a sign above the track with the word "minecart" on it.
- Boosters are not needed, carts do not slow down on normal track.
- Empty carts will disappear on normal tracks so they dont get ran into.
- Players can not drop items if on a track. Because items on tracks will stop a cart.
- When a player exits a cart it automatically disappears
- Players can not break carts on tracks to steal them.
- Mobs can not spawn on top of normal tracks.
- The combination of a normal track on a block of obsidian is automatically protected. Only an admin can break either block and no one can place a block beside the obsidian or on top of the track. This is so the admin can build public transportation without having to create many long skinny zones to keep the track from being griefed.

  • Some custom Recipes have been added.

- Grass Block
- Coal Ore
- Lapis Ore
- Spider Webs
- Mossy Cobble
- Redstone Ore
- Snow Sheets
- Ice Blocks
- Pumpkin Seeds
- Chainmail Armor



« Last Edit: October 26, 2011, 12:10 PM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #2 on: October 10, 2011, 08:39 AM »



PLUGIN COMMANDS

This is a list of custom commands.





  • /godmode (username)

Permission: /godmode

This is the basic god mode same as everyone else. Makes it so you dont die or get hurt. Being attacked will still make you react as if you got hurt allowing you to hide the fact that you are invincible from other players. If you do not give a username then it will be applied to the person typing the command. It is a toggle command so just type it again to turn god mode on or off. An extra benefit of being in god mode is swinging a gold sword will cause a lighting bolt.



  • /fly (username)

Permission: /fly

This allows you to over ride the server wide flying policy. You can toggle the fly permission on or off by typing the command again. Of course if another plugin or canary config is blocking flying this will not over ride those to allow people to fly.



  • /nobuild (username)

Permission: /nobuild

This will stop players from placing or breaking blocks or using items. It is the same idea as the Canary /modify which i found to be buggy and never stopped anyone from building. You can toggle on or off. The command will stay in effect even if they offline or the server reboots.



  • /heal (username) (health)

Permission: /godmode

You can just type "/heal" to fully heal yourself. If you supply a username it will fully heal that player instead. If you add a health 0 - 20 it will set their health to that level. Meaning "/heal name 0" would kill them.



  • /where (username)

Permission: /godmode

Gives you the X Y Z coords of that player.



  • /slap (username)

Permission: /godmode

Anyone remember the /slap command in classic McLawl? This will allow you to slap a player so hard they fly up into the clouds... then of course fall to their death unless water breaks their fall. If they are using a fly mod they will just stay floating in the clouds. You can set the height in the config.



  • /zap (username)

Permission: /godmode

Will strike a player with a lighting bolt anywhere on the map. Outside, inside a house, deep in a cave. They can't hide from your furry.



  • /showinv (username)

Permission: /godmode

This will show the players full inventory in the game and also in the console so you have more time to look at it before it scrolls off the screen.



  • /glassfloor

Permission: /glassfloor

This will spawn a 3x3 glass floor under your feet. Useful for having a starting point to build something high in the sky without having to make a 1 block tower from the ground to the clouds.



  • /snow (distance)

Permission: /weather

This will cover the ground with snow and freeze water within the distance rage of 1 - 200. Same as if it is snowing but just instantly spawns it.



  • /melt (distance)

Permission: /weather

This will instantly melt all snow and frozen water in the distance range of 1 - 200.



  • /grass (distance)

Permission: /weather

This will grow grass on all top dirt blocks within the distance range of 1 - 200.



  • /weed (distance)

Permission: /weather

This will weed the grass in a distance of 1 - 200 removing all tall grass, shrubs, flowers and mushrooms.



  • /stillwater (distance)

Permission: /weather

You know when someone puts a block in the water then breaks it, you get that current pulling to the hole created in the water? And if someone did alot of blocks your whole lake or ocean looks very griefed. This command will stop all of the currents by filling in the water holes with new water within a distance of 1 - 200. It will not scan the entire chunk to bedrock because you dont want to mess with the water deep in the ocean or effect flowing water in caves below. It will only scan water within 10 blocks under your feet so hover just above the water you want to smooth out.



  • /weather (sun|rain|storm)

Permission: /weather

Change the weather making it sunny, raining only, or rain with thunder. When you change the weather it does not force it to stay that way. The normal minecraft weather will change it at some random time later.



  • /killmobs (distance)

Permission: /godmode

This will kill all mobs, animal or monster within a distance of 1 - 200. However it does not effect squid.



  • /scuba

Permission: /scuba

This will allow players to stay under water for unlimited amounts of time. To use the command they must have one glass block in their inventory. It will put that block on their head which can be seen when using F5. When they come out of the water it will automatically take the glass block off of their head and put it back in their inventory. When underwater they will still loose air ticks but it will not hurt them.



  • /stacks

Permission: /stacks

This will combine blocks and items into stacks in the players inventory that normally are unstackable.



  • /banish (username)

Permission: /godmode

This banishes a player to the void. Simple but effective against annoying noobs.
When sent to the void they will fall then die. If they have fly mod on they will just float in the void.



  • /promote

Permission: /promote

This is used for allowing new players to promote themselves to a new level (group).
In the config you set how much it cost and the name of the group they promote to.



  • /stats (username)

Permission: /stats

This shows the stats of a player or yourself if no name is given. Stats include how long ago you joined the server, how many hours played online, kills, deaths, clan info, if they have a bounty, experience points. If the player is offline you have to type their full exact username.



  • /money
  • /money help
  • /money pay (username) (amount)
  • /money (tostore|fromstore) (amount)
  • /money give (username) (amount)
  • /money take (username) (amount)
  • /money show (username)
  • /money top

Permission: /money

Hopefully most of the commands are self explanatory. Just typing /money will show your balance. There are two balances or wallets.

There is your personal money and if you own a store there is your store balance. When players interact with your store the money is taken or paid into your store balance. This allows you to budget how much you are willing to pay out for items your stores buys so next time you login your not 100% bankrupt cause someone sold you tons of items. To move money between your store balance and your personal balance use the tostore and fromstore commands.

The difference between pay and give is pay comes out of your balance which is what normal players use to make payments to other players. And give is free money which only an admin can use.



  • /store (sell|buy) (item ID) (amount)

Permission: /store

If you have a store you use this command to set the price of items you are buying or selling. You must be standing inside your store zone to use the command.



  • /buy (item ID) (quantity)

Permission: /buy

Use this command when shopping in someones store. If you want to buy 10 torches you would type "/buy 50 10". You have to be standing inside of their store zone and must have punched the chest containing what you want to buy. More about that in the store documentation.



  • /makehome (normal|flat|remove)

Permission: /zone

This command is part of the zone feature. The concept is every player gets one home zone they can make anywhere they want like using /sethome. This will create a protected home zone for them to build which protects all blocks, chest, furnaces and dispensers. This is just the zone command with the homezone flag set. The difference is this command can be setup for all players to use as they only get one and it automatically puts a fence around the edges of the zone to show them where their property is. Zones are check to make sure a new zone is not going to overlap any other zones.

The two options of normal and flat is that in normal mode it just drops a fence on the landscape as is. Using the flat mode will flatten the land where they are standing and turn the entire area into the block type they are standing on. It will only work for grass, dirt, cobble and sandstone. It also will not let them do it higher then Y:120 or lower then Y:50.

In the config you can set a price for each normal, flat and remove. This is to discourage against griefing. If it was free someone can run all over your map and flat, remove, flat, remove all day long. You can also set how far down in the ground the zone will be flattened or protected under the block they are standing on. There is also an option for how big to make the zone, like a 20x20 square.



  • /zone

Permission: /zone

  • /zone help (1|2|3)

Shows the help screen in game.

  • /zone new (y)

Use new to create a new zone. You first mark two corners with a stick or can change in the config what item you want to use. The Y is not a number but an actual letter Y. If you do not use the Y then by default the zone is protected from bedrock to the sky inside the two corners you clicked. If you add the Y like "/zone new y" then the zone will be protected only to the heights of the two corners you clicked. When an admin makes a new zone by default it is owned by the server. If that admin wants the zone for themselves they have to use the /zone give (username).

Only an admin can make new zones anywhere on the map. But any player who has a zone with an overlap flag can make new subzones within their zone. Think of it like subdivisions. You can give someone a large city zone, then let them make subzones inside it for selling lots to build homes, etc.

  • /zone move (y)

This will allow you to move the corners of the zone. First mark the new corners with a stick then stand inside the zones current corners then type the command. The Y works same as new, without y it will move the height form bedrock to sky, with the y it will move the heights to the corners clicked. An admin can move a zone bigger outside of the current edges of the zone. But normal players can only move a zone smaller inside the existing edges.

  • /zone info

This will tell you information about a zone, who owns it, and which flags are set.

  • /zone coords

This will tell you the XYZ coords of both corners of the zone.

  • /zone when

This tells you how many days ago the owner of the zone was there. useful to know if a zone is abandoned.

  • /zone gohome (username)

This will allow the zone owner to teleport to the zone if it is a homezone. To tp to your own zone you do not put a username. Same idea as /sethome and /home. Anyone the zone owner has added to the allow list can also tp to the zone buy using the username of the zone owner.

  • /zone settp

This will set the teleport location where you are standing inside the zone for when you use the /zone gohome command.

  • /zone nick (nickname)

This will give a nickname to that zone.

  • /zone allow (username)

This is for adding players to your zone so they have permission to build inside your zone. They will also be able to open any of your inventory like chest. They must be online for you to add them.

  • /zone force allow (username)

This is the same as the normal allow command but it does not check if they are online. It will just force the exact name you type into your allow list. Must use their full exact username.

  • /zone kick (username)

This will remove a username from your allow list.

  • /zone who

This shows all of the usernames on the zones allow list.

  • /zone give (username)

This command will give the zone for FREE to another player.

  • /zone sell (amount)

This will set your zone for sell. Other players can see if it is for sale and for how much using the /zone info command. Once you make it available for sale then anyone can buy it even if you are offline. The money will automatically go into your balance if they buy it. To make it not for sale anymore set the price amount to zero.

  • /zone buy

If a zone is for sale and you have enough money use this command to buy the zone. The money is automatically paid from your balance to the person selling the zone.

  • /zone mobs

This will toggle on and off if mobs are allowed to spawn inside the zone. By default they are not allowed.

  • /zone pvp

This will toggle on and off if players are allowed to fight inside the zone. By default they are allowed to fight.

  • /zone public

This will make it so anyone can build inside the zone but they can not open inventory items like chest.

  • /zone notp

This will make the zone a no teleport zone. So players can not teleport into or out of the zone. Makes a nice jail. Also it blocks them from spawning out of the zone when they die. If someone dies inside of a notp zone they will respawn right where they died.

  • /zone delete

This deletes the zone. Can not be undone. If it was a store zone the entire price list will be lost.

  • /zone highlight

Admin only. This will put a glowstone square around the edges of the zone at the highest Y:127 point so you can see the zones border. Type command again to take away the glowstone.

  • /zone normalzone

Admin only. This will set a zone to normal which is the default when a admin makes a brand new zone.

  • /zone homezone

Admin only. This will set the homezone flag on a zone, same as if someone created the zone using the /makehome command.

  • /zone storezone

Admin only. This will make a zone a storezone. It will turn all chest in the zone a store chest allowing players to buy anything inside the chest. Read more about stores in the store documentation. Players can only own one store zone each.

  • /zone overlap

Admin only. This will set the overlap flag on a zone. Then more subzones can be created inside of it. This is useful for cities where you want to allow players to build inside a smaller lot without adding them to the main cities allow list.

  • /zone listall

This will list all of the zones on your server in the console.

  • /zone save

This will force saving all current zone info to file. You do not need to use this command as zones are automatically saved when the plugin is disabled and you can set in the config an auto save every so many minutes.


Some other notes about zones:

- If a block is set on fire it will burn, but the fire will not spread to other blocks. Like if you have a lava spill or a tree is set on fire from something on the edges of your zone.
- The owner of a zone can not be attacked while he is inside his zone. He is automatically protected from being hit. But he is not invicible, he can still fall, burn, etc.
- The owner of a zone any anyone on the allow list are allowed to fly inside the zone for building purposes. If another plugin or the server in general blocks flying this will not override.
- All chest, furnaces and dispensers inside a zone are automatically locked just by placing them. Only the zone owner, players on the allow list, or an admin can open them.
- Paintings are not protected in zones. People can steal them.



  • /clan

Permission: /clan

  • /clan

This will show you your clan information

  • /clan create (clan_name)

This will create a clan with you as boss. You can not have any spaces in the clan name and it is limited to 15 characters. You can set a price to start a clan in the config.

  • /clan join (clan_name)

You can join a clan if you were invited into it.

  • /clan invite (username)

Only the clan boss can use this command to invite a player to join the clan.

  • /clan kick (username)

Only the clan boss can use this to kick someone out of the clan.

  • /clan say (message)

This will send a whisper to all other clan members online.

  • /clan who

This will list all members in your clan.

  • /clan score

This will show the current kill count of each clan during the current match.

  • /clan disband

This will delete the clan and all members become clan-less.

Only players who belong to a clan can fight players in other clans. If you do not belong to a clan you can not fight or be attacked. This is so you can offer the pvp experience on a sever while at the same time allowing players not to be harassed by player killers if they dont want to be in a clan. You can not attack someone in your same clan.

Matches happen automatically every 5 minutes. All it means is when someone kills another player their clan gets a kill count which you can see with the score command. At the end of the 5 minute match the winning clan gets a kill bonus paid to every clan member that is currently online. You set in the config how much money to pay per kill above how many deaths they had. Example if your clan killed 10 people, but 3 of your clan members died you have a kill bonus of 7 kills. If you set a payment of 10 in the config then the bonus payment would be 70 to each online clan member.

Joining a clan is like joining the mob, you are in it for life. There are only two ways to get out of a clan after joining. The clan boss can kick you out or you can be invited into another clan by another clan boss.



  • /bounty (username) (amount)

Permission: /bounty

Bounty allows you to place a bounty price on someone life. This will entice other players to hunt down and kill that player. When you place a bounty on someone the money comes out of your balance and goes into escrow. You can not undo a bounty you have placed or get your money back. The player who kills that person you put the bounty on will automatically get paid the bounty amount from the escrow account. Multiple bounties can be placed on the same player and the total reward will be added together from all bounties.

This does not override any of the servers fighting policies. Such as if someone is not in a clan they can not be attacked so its a waste of money to put a bounty on someone who is not in a clan or if they have godmode. But if they end up joining a clan later and are killed the bounty will then be paid out.

You can type just "/bounty" to see a list of all bounties on players currently online.



  • /jumpto

Permission: /jumpto

The jumpto command is for letting players teleport to other players without pestering the admin to tp them. It is permission based so you can only jump to players who allow you to jump to them. This way you can not stalk and harass other players.

  • /jumpto help

Display in game help.

  • /jumpto list

List the other players you have allowed to jump to you.

  • /jumpto clear

Clear your allow list so no one is allowed to jump to you.

  • /jumpto allow (username)

Add a username to your allow list so they can jump to you.

  • /jumpto remove (username)

Remove a username from your allow list.

  • /jumpto player (username)  or just  /jumpto (username)

Teleports you to that player if you are on their allow list.

  • /jumpto up

This will teleport you up to the next block you are able to stand on. Its great for escaping from a cave you are lost in.

  • /jumpto down

Admin only. This will teleport you down to the next block you are able to stand on. The reason this is admin only is players complained about people using it to teleport into their hidden underground bases.

  • /jumpto loc (x) (y) (z)

Admin only. This will teleport you to any XYZ coords on your map.



  • /chunkinfo

Permission: Admin only

This tells you what chunk region your standing in and the name of the region file on your hard drive.




((This post is at max length, continue next post...))
« Last Edit: October 26, 2011, 11:40 AM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #3 on: October 10, 2011, 08:39 AM »



PLUGIN COMMANDS CONTINUTED

This is a list of custom commands.





  • /ping

Permission: Admin only

This will display the ping value of each player. If they are over 500 it will display their name in a brighter color.



  • /removeitems [distance]

Permission: /removeitems

Removes all inventory and blocks on the ground within set distance 1 - 200. Note, this does not remove experience orbs.



  • /walls

Permission: /walls

This is a simple cuboid command for players. Players must mark two corners using the edit tool (default is a stick) to show where they want a wall. They can mark a straight line for a single wall or mark a box to make four walls at once. The height of the wall is also based on the two corners clicked. They can only mark an area inside of a zone they are allowed to edit in to prevent griefing. The wall being built will only fill in empty/air blocks so it will not destroy other blocks. After the two corners are marked hold the type of block to make the wall with in your hand then type "/walls". The player must have enough blocks in their inventory to build the wall. This will not let them spawn blocks they do not have. It does not give them any advantage they do not already have, its only a time savor for building inside their zones.



  • /z

Permission: /z

The /z is a simple cuboid command. Use the edit tool (default is a stick) to mark two corners for length, width and height of the space you want to cuboid. Then use the type of cuboid you want to do from below. You can use the text word (like: dirt) or block ID (like: 3) number when selecting the block type. You only need to add the data value if want non-default other then zero. The replace can be multiples, everything being changed to the last block type at the end of the list.

Examples:
To fill in all blocks in the cuboid area as stone steps type "/z fill step" or "/z fill 44"
To fill in all blocks in the cuboid area as wood steps type "/z fill step:2" or /z fill 44:2"
To change all orange wool to blue in a cuboid area type "/z replace cloth:1 cloth:11"
To change all cobblestone, white wool and purple wool to stone type "/z replace cobble cloth cloth:2 stone"

  • /z fill [block:data]

Fill entire cuboid area with block specified.

  • /z walls [block:data]

Create walls of the block type specified, on all four sides of select cuboid area, leaving the floor and ceiling untouched.

  • /z hollow [block:data]

Create a hollow cube of the block type specified on all six sides of the selected cuboid area.

  • /z replace [block:data] [block:data] [block:data]

Replace all blocks listed inside the cuboid area with the last block type specified.

  • /z del

Delete everything inside the cuboid area.

  • /z fillin

This is for filling in valleys, caves, lakes, creeper explosions, TNT holes, etc. This does not use the edit tool to mark an area. You type the command first then you place a block. The block you place will be used to fill in EVERY that space it can flow to in a downward manner like a liquid. It will not flow upward. It will fillin and remove all none solid blocks like water, lava, torches, signs, etc. Use CAUTION with this command, it will spread EVERYWHERE it can flow to sideways, so if you do not place the block inside of a hole, or if that hole/cave has a leak, it will flow out. If that happens the block placed will grief your map and cover all the land in a horizontal direction. There is a built in limit of 5,000 blocks it is allowed to flow to before it stops in the event you do make a mistake.

  • /z clone

Clone is the same like replace, but its from placing a block. You do not use the edit tool to mark a cuboid area. You type the command first then place a block. The block in your hand that you place will become the new block, it will replace the type of block you place it on. It will replace ALL of the blocks of the same type that are touching each other. Like if you wanted to turn a pile of gravel to stone you place a stone block on top of the gravel. Or turn a sand beach into dirt, place a dirt block on top of the sand. This also has the built in 5,000 block limit. After it changes 5,000 blocks it will stop as a safety. Like if you accidentally try to change the basic grass or dirt you dont want to replace your entire world. When placing a block there are two ways/options which effect how blocks are replaced. If you place the new block on the top of the block to be replaced then it will replace all touching blocks in all directions. But if you place the new block on the side or bottom of the block to be replace, then it will only effect touching blocks going sideways and up. Never going below the level/height of the block you touched.

  • /z undo

The undo command will undo the last cuboid change made. However the undo is global and not per player. It will undo the last cuboid made on the server, not the last one done by you. If two people are using cuboid at the same time, you might be undoing the cuboid made by the other person on the server.



« Last Edit: October 26, 2011, 12:55 PM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #4 on: October 10, 2011, 09:21 AM »



CANARY COMMANDS

The following list are changes made to Canary built in commands.





  • /mute (username) (minutes)


It adds a time-out period to the mute feature. If you do not type how many minutes it will default to 5 minutes.
If the player logs off it does not stop the mute. They will stayed muted until the time expires no matter if they are online or the server is rebooted.



  • /stop


If you use /stop in the game or in the console it will save the location where all players are, kick everyone offline with a reboot message then allow Canary to stop the server normally.



  • /time (start|stop)


Added the feature to stop or restart time. Meaning when you type stop it will stay that time of day or night until either you start it again or the plugin is restarted. It is useful for the big projects where you want constant day light for building.



  • /me (message)


This cosmetically changes how the /me command shows in game to look more like an announcement and not a chat message.






This is a general information page about how stores work.

Stores are mostly physical with minimal typing unlike many other store mods.
You place items for sale in a chest so you as store own can always get access to your inventory or restock easily by placing more items in the chest.





As part of the economy players are encouraged to trade, buy and sell with each other. Players can always make private deals, you can pay someone with the /money command for items they give you. But if you are serious about trying to earn a profit you can run a store. The main advantage of stores is they are always open. Even when you are not online, players can buy and sell to your store anytime.

How to Shop at a Store

In a store zone the chest are used for buying and selling items. Small chest hold items you can buy from the store and large double chest are for the items you sell the store.

Punch a small chest and it will tell you the items for sale inside that chest. If a store has more then one chest you will have to punch each one to see what is inside it. If you want to buy what is inside the chest use the "/buy [Item ID] [How Many]" command.

To sell an item to the store hold it in your hand and punch a large double chest. The store will tell you how much it will pay you for that item. If you like the price then drop the item on the floor to sell it. The item will automatically go inside the chest and the money will be paid to your account.

Hint: You can sell a stack or partial stack at once by opening your inventory window, clicking the stack, and dropping it outside of your inventory box.

Buy Example:
  • You punch a chest that has a sword you want to buy.
  • The store will say "ID: 267 - IronSword is 100 coins (Have 23)"
  • That means the iron sword ID #267 cost 100 coins to buy and there are 23 swords in the chest.
  • To buy one sword you would type "/buy 267 1" and the sword goes into your inventory and your money is automatically charged.

Selling Example:
  • Hold an iron ingot in your hand and punch the large chest with it.
  • The store will say "I pay 50 coins for IronIngot. (ID 256)"
  • The pay amount is always for one, so if you sell a stack of 15 iron the amount would be 15 x 50 = 750 coins.
  • To sell the IronIngot drop it on the floor.
  • The item automatically goes inside the chest and the money is paid to you.


To Run A Store...

Once you understand how shopping at a store works, its easy to run a store. To get a store find a store zone that is for sale, stand in the zone and type "/zone buy". The chest work automatically as long as they are inside a store zone. Put the items you want to sell inside small chest. It is better to put only 1, 2 or 3 different items in a small chest, that way many items are not scrolling in the chat window when someone punches the chest. If you want to buy items from players place a large double chest in the store. Use the store command to set the prices you will buy and sell items for. Type "/store" in the game to see the format.

To sell iron ingot for 50 coins type "/store sell 267 50".
To buy iron ingot for 45 coins type "/store buy 267 45".
To cancel selling or buying an item set the price to zero (0).

All money your store earns from selling items will go into your money store account. If you are buying items from players your store needs money to pay the players with. Make sure you transfer money from your personal account to your store account with the money command.
« Last Edit: October 26, 2011, 11:39 AM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #5 on: October 10, 2011, 09:21 AM »



CONFIG.PROPERTIES




The first time you run the plugin it will create a directory off the main canary directory to store all of its needed files.
/canary/VillageMod/*.*

Look inside the directory for the config.properties file. It will have the defaults for you to edit how the plugin behaves. Other files in the directory are binary data files storing player, clan and zone data.

No this does not use MySQL support and never will. The data files are more efficient in my opinion. They are only read at startup then held in memory. No it does not use large amounts of memory either. On my server the player data file stores info for 897 players and is only using 265K.




  • NoCheat=-xr no-z-cheat

This is where you can put client side mod anti cheat codes to disable features of that mod. This will be sent to the player after the MOTD. It is not sent to admins.

  • NoFlying=no-z-fly

This is where you can put client side mod anti cheat codes to disable features of that mod. This will be sent to the player after the MOTD. It is not sent to admins.

  • AutoSaveMins=10

Set how many minutes you want VillageMod to auto save player, clan and zone data to file. Set to 0 to disable auto saving.

  • EditTool=279

Put the item ID of what you want to use for marking zone corners. Default is wood stick.

  • LightningWeapon=283

Put the item ID of what item/weapon you want to swing to cause lightning bolt. Default is the gold sword. Set to 0 to disable.

  • AnnounceGrief=true

Set to true to make public announcements when players place fire, lava or TNT. Does not announce admins. Set to false to disable.

  • HomeProtectSize=30

This is how big to make a zone when players use the /makehome command. 30 means it will make a 30x30 box around the player with the center being where they are currently standing.

  • HomeProtectDepth=10

This is how deep to make the zone when players use the /makehome command. 10 means that a depth of 10 blocks under the block the player is standing on when using the command will be protected by the zone. It is also how deep blocks will be replace when using the flat feature of the makehome command.

  • HomeNormalCost=0

This is how much to charge players for making a home zone. Leave 0 to make it free.

  • HomeFlatCost=0

This is how much to charge players for making a home zone and flattening all of the land. Leave 0 to make it free. Unless you TRUST all of your players it is suggested to set a price so its not used as a griefing tool.
 
  • HomeRemoveCost=0

This is how much to charge players for deleting their home zone. Leave 0 to make it free. Unless you TRUST all of your players it is suggested to set a price so its not used as a griefing tool.

  • PromotionCost=0

This is how much to charge a player to promote themselves. Example, if you have a guest group and a member group. You can set a price high enough that ensures they have spent some time playing and mining on your server before they can be promoted. Once they have earned enough money they can promote themselves without waiting for an admin to be online. Leave 0 to disable self promotion.

  • PromotionGroupName=

If there is a price set for the /promote command above then this is the name of the group they will be promoted to.

  • ClanStartCost=0

This is how much to charge a player to start a clan and become the boss of that clan. Leave 0 to make the command free. Since players can only fight if they are in a clan its a good idea to have a price here. They can cheat by killing someone then disbanding the clan so they can not be killed in return. Then when they ready to attack again re-create the clan. If its free they can do that all day long, make them pay to cheat.

  • TntSpawnsMob=Zombie

This is the mob type spawned when a player tries to place TNT above the TntWorksBelow level set below. Leave this line blank to disable any mobs being spawned. Follow the same mob names as using the Canary /spawnmob command with first letter capital.

  • TntWorksBelow=45

This is the Y height where TNT place below it will work, and TNT placed above it will be blocked and spawn two of the anti grief mobs listed above. This does not effect admins and you can set to 0 to disable blocking.

  • SlapAnnouncePublic=true

Set this to true to publicly announce when a player is slapped with /slap. Set to false for no public announcement.

  • SlapHeight=200

This is the Y height of how high you want a player to be sent up in the air before free falling back to the ground when slapped with the /slap command. They will take fall damage.

  • AllowFlying=true

Set this to true to allow free unrestricted flying on the server. Set to false to block flying in public areas. Players will be allowed to fly inside their zones for building purposes. Don't forget that even you allow flying here, other plugins or the server settings can still block flying.

  • AnnounceFlying=false

Set this to true to give the player a warning when the server has detected them flying. If set to false it will still stop them from flying but not send them any warnings.

  • AllowSpeedMoving=true

*** Currently disabled in this version release until the lag/server clock issue is more under control.

  • CreeperExplodes=true

Set this to true to let creepers explode like normal. Set this to false to stop creepers from exploding anywhere on the server.

  • CreeperExplodeAboveGround=true

Set this to true to allow creepers to explode as normal. Set this to false to stop creepers from exploding above ground out in the open. Even when false creepers will still explode indoors and underground.

  • MoneyIsCalled=coins

This is what you want money to be called in game. Such as dollars, pounds, pesos, coins, gold coins, etc.

  • MobSpawnLimitRange=30

This is to limit the number of mobs that naturally spawn. It is mostly to keep players from making large monster traps that could cause lag. Set this to the distance you want scanned before a monster is spawned. Example: If range is 30 when the server wants to spawn a mob it will scan for other mobs within 30 blocks of where it wants to spawn the new mob. If there are already too many mobs in that area it will not allow a new mob to spawn. Set to 0 to disable the limit.

  • MobSpawnLimitMobs=5

Set this to how many mobs you want to be allowed inside the range mentioned above. Once that area has this many mobs new mobs will not be allowed to spawn in the same area.

  • WorldBorder=0

Set this to the maximum X and Z coord you want players to be able to travel. It is useful to stop players from bloating your map. Example: If you set it to 5000 then players can only travel between X:-5000 to X:5000 and Z:-5000 to Z:5000. Admins are not effected by this limit and can travel anywhere. Set to 0 to disable the limit.

  • AcidRain=false

Set this to true to turn normal rain into acid rain which gives minor damage. Set to false to leave rain as normal.

  • IdleTimeoutMins=0

Set this to how many minutes before a player is kicked for being AFK. Set to 0 to disable kicking them.

  • AllowRedtorchBlink=true

Set this to true to allow red torches to behave as normal in circuits. Set to false to stop them from blinking such as when used in AND/OR gates. Many blinking torches on a server can spike CPU usage.

  • AllowCactusFarm=true

Set this to true to allow building as normal, cactus farms, etc. Set this to false to stop players from placing blocks next to a cactus to build auto harvesting farms. Large auto harvesting farms can spike CPU usage.

  • OnlyClansCanFight=false

Set this to false for default minecraft fighting behavior. If you set it to true then players must belong to a clan to fight with other players.

  • ClanKillBonusAmount=0

This is the amount of money to pay every online player of a clan per bonus kill during one of the 5 minute matches.

  • MiningDiamondPays=0

This is how much to auto pay players for mining diamonds. Set to 0 for no payment.

  • MiningGoldPays=0

This is how much to auto pay players for mining gold. Set to 0 for no payment. If a price is set when a player mines gold it will drop an ingot instead of the ore. Or they can replace the ore and mine again for another payment.

  • MiningIronPays=0

This is how much to auto pay players for mining iron. Set to 0 for no payment. If a price is set when a player mines iron it will drop an ingot instead of the ore. Or they can replace the ore and mine again for another payment.

  • BuyZoneCooldownHours=0

This is how many hours a player must wait to buy another zone just after purchasing one. This is to prevent one player from buying up all the zones before offline players have a chance to buy a zone. Set to 0 to disable and allow players to buy as many zones as they want as fast as they want.

  • MaxPingToKick=0

This is the maximum ping value players can have before getting auto kicked for lag. You can fine turn it for your server, i suggest between 500 to 1000. Use the /ping command to see what players pings are to give you an idea of how to set this. Leave it 0 to disable this feature and not kick lagers.



« Last Edit: October 26, 2011, 11:41 AM by phil_whiteboy »

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
VillageMod
« Reply #6 on: October 10, 2011, 09:21 AM »



CHANGE LOGS

v1.10
         





TODO LIST AND BUG REPORTS

I will keep track of any planned features or bugs that have been reported here.





...nothing currently.
« Last Edit: October 26, 2011, 12:04 PM by phil_whiteboy »

theask

Re: VillageMod - Combined all in one plugin.
« Reply #7 on: October 10, 2011, 09:52 AM »
öhhh? Wow?
Sounds nice!

Offline SirPsp

  • Plugin Dev & Mod
  • Silver Canary
  • Moderator
  • ******
  • Join Date: Jun 2011
  • Posts: 2,148
  • Reputation: 76
  • PlaySocket Productions
    • View Profile
    • http://www.playsocket.net
Re: VillageMod - Combined all in one plugin.
« Reply #8 on: October 10, 2011, 01:00 PM »
Wow that's a lot of stuff in 1 plugin. You could run your whole server on this plugin alone.

Could you update the title to comply with the Plugin Release Guide
Include a prefix, plugin version and Canary version.

Offline Glacksy

  • Owner of TopicaRP
  • Silver Canary
  • Donators
  • *****
  • Join Date: Jun 2011
  • Posts: 1,816
  • Reputation: 22
    • View Profile
    • http://topica-rp.com
Re: VillageMod - Combined all in one plugin.
« Reply #9 on: October 10, 2011, 01:12 PM »
wow, just wow

edit:
you sent me some codes for stacking inventory, is this the same? cause i had problems with it, it does not stack the inventory bar, which you see while your inventory is closed :p (don't know the name)

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
Re: VillageMod - Combined all in one plugin.
« Reply #10 on: October 10, 2011, 02:19 PM »
You could run your whole server on this plugin alone.

I do, thats kind of the point. :)




you sent me some codes for stacking inventory, is this the same? cause i had problems with it, it does not stack the inventory bar, which you see while your inventory is closed :p (don't know the name)

Yes its the same or pretty close to the same. And it does not stack the quick bar on purpose. I find it annoying to have my tools combined into a stack in the main inventory. Then you have to get your tools and move them back into the quick bar.
« Last Edit: October 10, 2011, 02:26 PM by phil_whiteboy »

Offline Jamesified

  • The Lab Rat
  • Baby Chick
  • *
  • Join Date: Jun 2011
  • Posts: 47
  • Reputation: 0
    • View Profile
    • http://twiter.com/jamesified.
Re: [ALL] VillageMod v1.0 - Combined all in one plugin. [B9]
« Reply #11 on: October 10, 2011, 04:52 PM »
This looks really good. I will have to try this out.

Offline Timelord_Skylord

  • Permissions Master (PM me if you want my help)
  • Bronze Canary
  • *****
  • Join Date: Jul 2011
  • Posts: 621
  • Reputation: -2
  • Pop Goes the Weasel.
    • View Profile
    • Timehold
Re: [ALL] VillageMod v1.0 - Combined all in one plugin. [B9]
« Reply #12 on: October 19, 2011, 06:45 PM »
OMG THIS IS EXACTLY WHAT I WAS LOOKING FOR, THANK YOU SO MUCH =)

Want your own Dragon?

Click

Offline phil_whiteboy

  • Canary Sr.
  • ****
  • Join Date: Jun 2011
  • Posts: 339
  • Reputation: 8
    • View Profile
Re: [ALL] VillageMod v1.0 - Combined all in one plugin. [B9]
« Reply #13 on: October 22, 2011, 02:39 AM »
But as i predicted, hardly anyone has any interest in my plugins.
This is why i usually keep my work to myself and i don't think i will
continue to post new versions of this.

Offline Billy

  • Ex Plugin Dev :(
  • Silver Canary
  • Plugin Dev
  • ****
  • Join Date: Jun 2011
  • Posts: 1,092
  • Reputation: 32
    • View Profile
Re: [ALL] VillageMod v1.0 - Combined all in one plugin. [B9]
« Reply #14 on: October 22, 2011, 02:51 AM »
hmm. yes because what you just said is heavily supported by the evidence of the previous posts. but this type of plugin has been released before, 2 canary forum's ago :D, its very server percific and feature full that people like to fill that gaps with smaller plugins, instead of disable a million and one things in this :D, it does look very good but i dont host a server.
i decided i didnt want a signature.