ClaimBans 1.0.1

Ban players from entering your GriefPrevention claims!

  1. Swiftlicious
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Contributors:
    Swiftlicious
    Information:
    Allow your players to ban players from entering their GriefPrevention claims! When a banned player enters a claim they're not meant to be in then it will automatically teleport them to a set spawnpoint and it will also disallow them from directly teleporting to a location that is inside of a claim they're banned in. You can also view all players that are banned in the claim you're standing in or unban a banned player if you are the owner of the claim or have permission trust in the claim! All banned users are saved in a yml file named under the claim's unique ID. The owner of any claim can not be banned of course and if a claim is deleted the file will be removed.

    Required Dependencies:
    GriefPrevention


    Permissions:
    "claimbans.admin" (op) - Access to admin commands related to the plugin.
    "claimbans.exempt" (op) - Will not be able to be banned in a claim.
    "claimbans.ban" (default) - Access to ban a user in the claim you're standing in.
    "claimbans.unban" (default) - Access to unban a user in the claim you're standing in.
    "claimbans.banlist" (default) - Access to view the banlist in the claim you're standing in.

    Commands:

    /claimbans - To reload the config.yml and set the spawnpoint for banned players to be teleported to when entering a claim they're disallowed in.
    /claimban [username] - Bans the user from entering the claim that the player who executed the command is standing in if one exists.
    /claimunban [username] - Unbans the user from the claim that the player who executed the command is standing in if one exists and if the user is banned to begin with.
    /claimbanlist - Views a list of pages of players who are banned in the claim that the player who executed the command is standing in if one exists.

    Default Config:
    Code (YAML):
    # CLAIM BAN CONFIG #
     
    Data
    :
      spawn-location
    :
       # The world that your spawn is located in.
        world
    : world
        # The X coordinate that your spawn block is on.
        x
    : 0
        # The Y coordinate that your spawn block is on.
        y
    : 70
        # The Z coordinate that your spawn block is on.
        z
    : 0
        # The Yaw for the spawn block (the way you're facing).
        yaw
    : 90
      # If true then only the owner of claims can ban/unban/view banlist otherwise anyone who has /permissiontrust in the claim can do so.
      only-owner-can-ban
    : false
     
    Messages
    :
     ############################################################################################################################################################
      ## YOU CAN CUSTOMIZE THE HOVER AND CLICK EVENTS YOURSELF ##
      ## - [json|*options*]chat text[/json] - ##
      ## Option    Action    Description ##
      ## suggest=<suggestion>    Click    <suggestion> will appear in the player chat text field ##
      ## run=<text>    Click    Player will send <text>, commands are possible too ##
      ## link=<url>   Click    Player will be asked if they want to open <url> in a browser ##
      ## hover=<text> Hover    <text> will appear above the cursor if hovered by the mouse ##
      ## You can add multiple hover events within the same message just write in the above format! ##
      ## To add multiple options for chat text use |json| as deliminter. Please note that you can of course just add one possible option per action. ##
      ## To make multiple lines in a hover event you can use the placeholder %n, NOTE: This only works inside hover= events! ##
      ## Here are some example Json Messages: ##
      ## &awowow ['json|suggest=test']&brandom text[/json] ##
      ## ['json|hover=runs /list|json|run=/list']&erun &c/list[/json] ##
      ## ['json|hover=opens google|json|link=http://www.google.com']google &blink[/json] ##
      ## If you wish to center messages in chat type the phrase <center> in front of the message. This works for all chat type messages. ##
      ## You can't mix the <center> tag and also use hover events in the same message, if you want to center them you'll have to calculate the spaces yourself! ##
      ############################################################################################################################################################
      # Variables: %prefix% %cmd-label% %user% %number% %world% %x% %y% %z% %yaw%
      prefix
    : "&7[&bClaim&cBans&7]"
      claim-invalid
    : "%prefix% &cThere is no existing claim at the location you're at!"
      not-owner-of-claim
    : "%prefix% &cYou don't own this claim or have trust permissions so you can't ban/unban anyone in it or view the banlist!"
      can-not-ban-owner-of-claim
    : "%prefix% &cYou can't ban the owner of the claim!"
      exempt-from-banning
    : "%prefix% &cThe user &e%user% &cis exempt from being banned in claims!"
      banned-from-claim
    : "%prefix% &aThe user &6%user% &awas banned from this claim!"
      unbanned-from-claim
    : "%prefix% &aThe user &6%user% &awas unbanned from this claim!"
      already-banned-from-claim
    : "%prefix% &cThe user &e%user% &cis already banned from this claim!"
      not-banned-from-claim
    : "%prefix% &cThe user &e%user% &cisn't banned from this claim!"
      missing-valid-name
    : "%prefix% &cYou need to include a username of an online player who you wish to ban/unban!"
      no-permission-to-ban
    : "%prefix% &cYou don't have permission to ban anyone from a claim!"
      no-permission-to-unban
    : "%prefix% &cYou don't have permission to unban anyone from a claim!"
      no-permission-to-view-banlist
    : "%prefix% &cYou don't have permission to view who is banned in a claim!"
      banlist-header
    : "%prefix% &aPlayers Banned From This Claim:"
      banlist-page
    : "&7%number%. &b%user% ['json|hover=&cClick to unban to &4%user%&c!|json|run=/claimunban %user%']&c&l[UNBAN][/json]"
      banlist-next
    : "&eGo to the next page with &6/claimbanlist %number%"
      banlist-empty
    : "%prefix% &cNo players are banned in this claim!"
      cannot-enter-claim
    : "%prefix% &cYou are banned from this claim and cannot enter it!"
      reloaded-config
    : "%prefix% &aThe config.yml has been reloaded!"
      set-spawn
    : "%prefix% &aYou've set the spawn at &6%x%&a, &6%y%&a, &6%z% &awith a yaw of &6%yaw% &ain the world &6%world%&a!"
      same-spawn
    : "%prefix% &cThe location you're at is already the same spawn in the config!"
      admin-help-header
    : "%prefix% &cAdmin Help Commands:"
      admin-help-page
    :
       - " "
        - "&6/%cmd-label% reload &7- &eReload the config.yml!"
        - "&6/%cmd-label% setspawn &7- &eSet the spawn location!"
        - " "
      console-help-header
    : "%prefix% &cConsole Help Commands:"
      console-help-page
    :
       - " "
        - "&6/%cmd-label% reload &7- &eReload the config.yml!"
        - " "
    Suggestions are welcome to make the plugin more unique and fun :)!​

Recent Updates

  1. Fixes UpdateChecker