Settings Config

You can find general settings of the plugin in config.yml file.

# MythicTotem by @PQguanfang
#
# READ THE WIKI: mythictotem.superiormc.cn
debug: false
# If you are facing double action issue, please bump this value to 20+.
cooldown-tick: 5
# Premium version only.
check-prices: true
check-protection:
  can-build: false
  can-break: false
  can-interact: false
  can-use: false
register-libreforge: false
disappear:
  BukkitAPI:
    # This BukkitAPI option can not be disabled!
    # If you are facing totem blocks not disappear issue, you can try enabled below options.
    # However, they are not fully tested and will lead unknown issues!
    enabled: true
  BlockDamageEvent:
    enabled: false
  BlockBreakEvent:
    enabled: false
trigger:
  BlockPlaceEvent:
    enabled: true
    require-shift: false
    black-creative-mode: false
  PlayerInteractEvent:
    enabled: false
    require-shift: true
    black-creative-mode: false
  PlayerDropItemEvent:
    enabled: false
    require-shift: false
    black-creative-mode: false
  # This event does not support get the player object, so cooldown-tick option does not effect this trigger.
  # And all actions and conditions that related to player is can not be used.
  # And all placeholders that related to player also can not be used.
  # Otherwise you will get tons of errors on console!!!
  BlockRedstoneEvent:
    enabled: true
  # Will check end crystal only.
  EntityPlaceEvent:
    enabled: true
    require-shift: false
    black-creative-mode: false

Debug

Only enable this if you know what are you doing! It will print tons of debug info on console.

Cooldown Tick

This means totem check system now have a cooldown system for per player, this can avoid server lag if you have much online players.

Bump it to 20+ if you are facing double action issue.

Disappear

What events will be called to make totem blocks disappear.

For now it has 2 events and BukkitAPI:

  • BukkitAPI: Make plugin itself remove the blocks, it is very safe and should not have any issues.

  • BlockDamageEvent: It will simulate that the player is damaging the blocks in order to remove it, it maybe has some issues with other plugins linsten this event.

  • BlockBreakEvent: It will simulate that the player is breaking the blocks in order to remove it, it maybe has some issues with other plugins linsten this event.

Trigger

What events will be listened to check if a valid totem has been placeed correctly.

For now it has 5 events:

  • BlockPlaceEvent: will be called when players place the block.

  • PlayerInteractEvent: will be called when players click the block.

  • PlayerDropItemEvent: will be called when players drop the item on the block. If you set core block for a totem, player must stand on the center of the core block then drop the item onto the center of the block to active totem.

  • EntityPlaceEvent: will be called when player place ender crystal on the block.

  • BlockRedstoneEvent: will be called when redstone actived. This event does not support get the player object, so cooldown-tick option does not effect this trigger.

All events except BlockRedstoneEvent have those options:

  • enabled: enable or disable this event trigger feature.

  • require-shift: we only check the totem if player is shifting.

  • black-creative-mode: we only check the totem if player is not in creative game mode.

Last updated