turt2live

Untitled

Apr 29th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 10.96 KB | None | 0 0
  1. config.yml:
  2. # AntiShare Configuration:
  3. # Events:
  4. #   'block_place' - Blocks/items to deny for block placing
  5. #   'block_break' - Blocks/items to deny for block breaking
  6. #   'death' - Blocks/items to not allow to drop on death
  7. #   'drop_item' - Block/items to not allow to drop when a player presses (default) Q
  8. #   'interact' - Blocks/items to deny interactions to. (Left/Right click)
  9. #   'commands' - Commands to block, define a new command with a SPACE (defaults block '/somecommand' and '/anothercommand')
  10. #   -- Want all blocks/items to be denied? Put a *
  11. #   -- Want no blocks/items to be denied? Put: none
  12. #   -- Make sure item lists are space-seperated, not commas, periods, or fancy other things!
  13. #
  14. # Messages:
  15. #   All messages are when they are declined an action.
  16. #   Chat colors are supported using the & sign (eg: &f = white)
  17. #   If you wouldn't like a message to show, set the value as 'noshow'
  18. #
  19. # Other:
  20. #   'only_if_creative' - Auto-decline if they are in creative, permissions still apply.
  21. #       (eg: A player doesn't have the allow or decline permission to place, and is in creative, places a block: declined)
  22. #       For per-player support, set the permission "AntiShare.onlyIfCreative". See the permissions section for more information
  23. #   'allow_eggs' - If false then eggs cannot be used (the ones that spawn mobs, like creepers)
  24. #   'inventory_swap' - If true then creative and survival inventories will be swapped
  25. #   'track_blocks' - If true then creative mode blocks will be tracked where only creative mode players can break them
  26. #                       (unless they have the permission "AntiShare.blockBypass")  
  27. #   'allow_bedrock' - If false then bedrock will never be broken or placed
  28. #   'pvp' - True if you want to allow creative players to hit other players ("AntiShare.pvp" to allow to specific players)
  29. #   'pvp-mobs' - True if you want to allow creative players to be able to hit mobs ("AntiShare.mobpvp" to allow to specific players)
  30. #   'blockDrops' - Only works if 'track_blocks' is in effect. If true, you allow allow the creative-mode block to be broken, but no drops will be produced
  31. #                  If false, you don't allow the block to be broken (1.0.6 and prior default). While breaking (if this is true) AntiShare sends the message
  32. #                  'noBlockDrop' to the player once per second, or for every different block. As well, when the block is 100% broken it will show 'creativeModeBlock'.
  33. #   'worldTransfer' - True if you would like to allow players to transfer worlds. See the section towards the end of this documentation labeled "world transfer information" for help.
  34. #                     True means you can transfer TO the world, false means you cannot.
  35. #   'tracked-blocks' - The blocks the plugin should track and mark as "creative" blocks (if the player placing is in creative). This list is SPACE defined (see default)
  36. #                    You can set this to 'none' or '*' as well if you prefer, 'none' meaning don't track (set 'track_blocks' to false to reduce some possible lag), '*' meaning
  37. #                    track everything placed.
  38. #
  39. #   The following are affected by 'only_if_creative': 'allow_eggs', 'allow_bedrock', 'pvp', 'pvp-mobs', 'worldTransfer', and all the 'events'
  40. #   This means the above settings will check if they are in creative or not and act upon that
  41. # SQL:
  42. #   'use' - If this is false, flat-file storage will be used instead
  43. #   'host' - The SQL host, usually localhost
  44. #   'username' - The SQL username to use, this user must be able to create/edit/view tables in the database
  45. #   'password' - The SQL password for the above username
  46. #   'port' - The SQL port, this is unused thus far (will be used in later support)
  47. #   'database' - The SQL database to use, this must already be made
  48. #
  49. # Notifications:
  50. #   - Used to alert specific people of actions taking place
  51. #   'send' - True to send notifications, false otherwise
  52. #   'illegal' - All the illegal (blocked) actions, the name of the action relates to the action (eg: block_place means an illegal block was placed)
  53. #   'legal' - All the legal (allowed) actions, the name of the action relates to the action (eg: block_place means an legal block was placed)
  54. #   'general' - Everything else that doesn't fit into a category (illegal/legal)
  55. #  
  56. # Permissions:
  57. #   'AntiShare.*' - Deny all events
  58. #   'AntiShare.place' - Deny block placing
  59. #   'AntiShare.break' - Deny block breaking
  60. #   'AntiShare.death' - Deny item drops on death
  61. #   'AntiShare.drop' - Deny item dropping
  62. #   'AntiShare.interact' - Deny interactions
  63. #   'AntiShare.eggs' - Deny eggs that spawn mobs
  64. #   'AntiShare.commands' - Deny command usage (for specified commands)
  65. #   -- If you want to allow an event, change the node to 'AntiShare.allow' (eg: 'AntiShare.allow.place' would allow placing)
  66. #   'AntiShare.onlyIfCreative' - Only deny actions if the player is in creative mode, false to deny regardless of Game Mode (this is default FALSE)
  67. #   'AntiShare.onlyIfCreative.global' - Uses the configuration value and overrides the 'AntiShare.onlyIfCreative' permission (this is default TRUE)
  68. #   'AntiShare.reload' - Permission to use /antishare
  69. #   'AntiShare.noswap' - If true, the player is exempt from inventory swapping, otherwise they will have their inventory switched
  70. #   'AntiShare.blockBypass' - If true, then the player can bypass the "Creative mode players can only break this block" message
  71. #                           - As well they can break a block and get drops if 'blockDrops' (under 'other') is true
  72. #   'AntiShare.freePlace' - If true, then the player can place a "creative-mode" block without it being registered as a "creative-mode" block
  73. #   'AntiShare.bedrock' - If true, then the player can break and place bedrock
  74. #   'AntiShare.pvp' - Allows PVP to a creative mode player
  75. #   'AntiShare.mobpvp' - Allows Mob PVP to a creative mode player
  76. #   'AntiShare.worlds' - Allows world teleporting without being blocked, also stops multi-world inventories for the target
  77. #   'AntiShare.notify' - Sends notifications to the player
  78. #   'AntiShare.silent' - Stops the sending of notifications from this player
  79. #   'AntiShare.admin' - Includes "AntiShare.allow.*", "AntiShare.reload", "AntiShare.blockBypass",
  80. #                         "AntiShare.freePlace", "AntiShare.bedrock", "AntiShare.pvp", "AntiShare.worlds",
  81. #                         "AntiShare.notify", "AntiShare.silent", and "AntiShare.mobpvp".
  82. #
  83. # Commands:
  84. #   '/antishare' - Reloads configuration
  85. #       Aliases: '/as', '/antis', '/ashare'
  86. #
  87. # Notes:
  88. #   - Permissions default to all deny as true while all allow as OP or higher.
  89. #   - 'only_if_creative' will override the permissions meaning if a player is in survival-mode while 'only_if_creative' is true then
  90. #     the deny permissions will be ignored (eg: That survival player places a block: it is placed)
  91. #   - The default settings decline interactions with furnaces, chests, dispensers, and chest-minecarts
  92. #   - The event 'block_break' is set to 'none' because in creative-mode, no blocks are dropped when broken
  93. #   - Messages support colors, use '&' to define a color. Eg: "&aWelcome!" will display "Welcome!" in green.
  94. #   - **** The new permissions for 'only if creative' do not need to be set ****
  95. #         - The default values mirror the pre-permissions setup to stop servers from breaking.
  96. #
  97. # World Transfer Help:
  98. #   Here is a table of values to show you what would happen depending on settings:
  99. #   ------------------------------------------------------------------------------
  100. #   | worldTransfers | only_if_creative |                  Result                |
  101. #   ------------------------------------------------------------------------------
  102. #   |      true      |       true       | All players can transfer worlds        |
  103. #   ------------------------------------------------------------------------------
  104. #   |      true      |       false      | All players can transfer worlds        |
  105. #   ------------------------------------------------------------------------------
  106. #   |      false     |       true       | Only creative mode players are blocked |
  107. #   ------------------------------------------------------------------------------
  108. #   |      false     |       false      | All players are blocked from transfers |
  109. #   ------------------------------------------------------------------------------
  110. events:
  111.   block_break: none
  112.   block_place: none
  113.   death: '*'
  114.   drop_item: '*'
  115.   interact: 23 61 62 54 342
  116.   commands: /somecommand /anothercommand
  117. messages:
  118.   block_break: You can't do that!
  119.   block_place: You can't do that!
  120.   death: You can't do that!
  121.   drop_item: You can't do that!
  122.   interact: You can't do that!
  123.   eggs: You can't use the spawn eggs!
  124.   inventory_swap: Your inventory has been changed.
  125.   creativeModeBlock: You cannot break that block! It was placed by a creative mode player.
  126.   bedrock: You cannot play with bedrock!
  127.   pvp: You cannot hit other players!
  128.   mobpvp: You cannot hit mobs!
  129.   noBlockDrop: You will not get anything from breaking that!
  130.   illegalCommand: You cannot use that command!
  131.   worldSwap: You cannot transfer to that world!
  132. other:
  133.   only_if_creative: true
  134.   allow_eggs: false
  135.   inventory_swap: true
  136.   track_blocks: true
  137.   allow_bedrock: false
  138.   pvp: false
  139.   pvp-mobs: false
  140.   blockDrops: false
  141.   worldTransfer: true
  142.   tracked-blocks: '*'
  143. SQL:
  144.   use: false
  145.   host: localhost
  146.   username: AntiShare
  147.   password: AntiSharePW
  148.   port: 3306
  149.   database: AntiShare
  150. notifications:
  151.   send: true
  152.   illegal:
  153.     block_place: true
  154.     block_break: true
  155.     death: true
  156.     drop_item: true
  157.     interact: true
  158.     command: true
  159.     egg: true
  160.     creative_block_break: true
  161.     pvp: true
  162.     mob-pvp: true
  163.     bedrock_attempt: true
  164.     world_transfer: false
  165.   legal:
  166.     block_place: false
  167.     block_break: false
  168.     death: false
  169.     drop_item: false
  170.     interact: false
  171.     command: false
  172.     egg: false
  173.     creative_block_break: false
  174.     pvp: false
  175.     mob-pvp: false
  176.     bedrock_attempt: false
  177.     world_transfer: false
  178.   general:
  179.     gamemode_change: true
  180.  
  181.  
  182.  
  183. world_config.yml:
  184. # World Configuration
  185. # The defaults here are the same as the config.yml
  186. # If you would like to use a "global" value, set the value here as 'global' (like in defaults)
  187. # Otherwise, use a custom value.
  188. # For an explanation of each value, see config.yml
  189. events:
  190.   block_break: global
  191.   block_place: global
  192.   death: global
  193.   drop_item: global
  194.   interact: global
  195.   commands: global
  196. messages:
  197.   block_break: global
  198.   block_place: global
  199.   death: global
  200.   drop_item: global
  201.   interact: global
  202.   eggs: global
  203.   inventory_swap: global
  204.   creativeModeBlock: global
  205.   bedrock: global
  206.   pvp: global
  207.   mobpvp: global
  208.   noBlockDrop: global
  209.   illegalCommand: global
  210.   worldSwap: global
  211. other:
  212.   only_if_creative: global
  213.   allow_eggs: global
  214.   inventory_swap: global
  215.   track_blocks: global
  216.   allow_bedrock: global
  217.   pvp: global
  218.   pvp-mobs: global
  219.   blockDrops: global
  220.   worldTransfer: global
  221.  
  222.  
  223. (sorry for all the big letters I just copy-pasted it I don't know how this happens)
Advertisement
Add Comment
Please, Sign In to add comment