Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added per Arena Whitelist/BlackList (optional feature) and Compass Track #71

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

hitech95
Copy link

Some changes on Arena.java and Game.java
Changed some event: PlayerBreak and PlayerPlace

If a person insert -1 on whitelist/blacklist all block are
allowed/locked

Games without this optional configuration use the general config.

This is an example of the new system.yml structure.
These setting are optional and have to be added manually by the admin or maintainer.

version: 0
sg-system:
  arenano: 2
  arenas:
    '1':
      world: hg1
      x1: 40
      y1: 120
      z1: 40
      x2: -40
      y2: 40
      z2: -40
      enabled: true
      block:
        isWhitelist: false
        break:
        - 1
        - 2
        place:
        - 1
        - 2
    '2':
      world: hg2
      x1: 40
      y1: 99
      z1: 40
      x2: -40
      y2: 19
      z2: -40
      enabled: true
  lobby:
    spawn:
      world: hg2
      x: 0
      y: 125
      z: 0
    sign:
      set: true
    signno: 2
    signs:
      '1':
        id: 1
        world: lobby
        x1: 10
        y1: 126
        z1: 4
        x2: 10
        y2: 126
        z2: -4
  '2':
        id: 2
        world: lobby
        x1: 10
        y1: 127
        z1: 4
        x2: 10
        y2: 127
        z2: -4

I have also implemented the compass traking. (left click distance; right click target) to enable this feature check your config.

I have also added somo other bug fix.
Enchat name now are simple! (see the code). are the same of Essential but lowercase and without the "_"

Enchat Link: http://wiki.ess3.net/wiki/Enchantments

Removed some debug string.

Some changes on Arena.java and Game.java
Changed some event: PlayerBreak and PlayerPlace

If a person insert -1 on whitelist/blacklist all block are
allowed/locked

Games whithout optional configuration use the general config.
using formatted function.
Using debug output function instead Sys.out.println
Using formatted function instead basic.
@DeadIntermediate
Copy link

Is there a way I can a copy of what you added?

@hitech95
Copy link
Author

You have to wait for the merge.
Otherwise you have no way to take advantage of future features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants