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 command to fix name changes #1

Closed
wants to merge 1 commit into from
Closed

Added command to fix name changes #1

wants to merge 1 commit into from

Conversation

xf57212
Copy link

@xf57212 xf57212 commented Feb 11, 2015

Added command /ta resident
Added command /ta resident
Added command /ta resident rename (to be used to fix
name change issues)
Added permission node towny.command.townyadmin.resident.*
Added permission node towny.command.townyadmin.resident.rename
Added event RenameResidentEvent(String oldname, Resident resident)

Signed-off-by: backcab [email protected]

Added command /ta resident <name>
Added command /ta resident <name> rename <newname> (to be used to fix
name change issues)
Added permission node towny.command.townyadmin.resident.*
Added permission node towny.command.townyadmin.resident.rename
Added event RenameResidentEvent(String oldname, Resident resident)

Signed-off-by: backcab <[email protected]>
@LlmDl
Copy link
Member

LlmDl commented Feb 11, 2015

Manually merged to form 0.89.2.2

@LlmDl LlmDl closed this Feb 11, 2015
LlmDl pushed a commit that referenced this pull request Jul 17, 2017
Fixed many translation flaws and added some missing variables
LlmDl pushed a commit that referenced this pull request Oct 12, 2017
LlmDl pushed a commit that referenced this pull request Jan 18, 2018
update from the original
LlmDl pushed a commit that referenced this pull request Jan 18, 2018
LlmDl pushed a commit that referenced this pull request Feb 28, 2018
Update local repository with head.
LlmDl pushed a commit that referenced this pull request Jul 15, 2018
LlmDl pushed a commit that referenced this pull request Sep 9, 2020
LlmDl added a commit that referenced this pull request Nov 28, 2020
- Mostly formatting things.
- Probably caught a 2nd bug with the mysql implementation of ruins'
hours.
LlmDl added a commit that referenced this pull request Nov 29, 2020
- Adds TownReclaimedEvent & TownRuinedEvent.
- Cleans up TownRuinUtil to use the API in places it did not.
- Changes PlotCommand test to check the townblock's town and not the
player running the command.
- Maxes out the RemainingHours at 1000.
LlmDl added a commit that referenced this pull request Nov 29, 2020
* Merges in the Ruined Town feature from Goosius' SiegeWar.

- Only slight modifications made so far in the TownRuinUtil.

* Cleanup pass #1

- Mostly formatting things.
- Probably caught a 2nd bug with the mysql implementation of ruins'
hours.

* Clean up pass #2.

- Adds a permission node to /town reclaim.

* Polishing commit #1

- Adds TownReclaimedEvent & TownRuinedEvent.
- Cleans up TownRuinUtil to use the API in places it did not.
- Changes PlotCommand test to check the townblock's town and not the
player running the command.
- Maxes out the RemainingHours at 1000.

* Polishing Commit #2

- Remove unnecessary isRuined() tests in DailyTimerTask.
  - the town.hasUpkeep() is false for all NPC mayor'd towns.

* Final polishing commit #3

- Fix events running in async.
- Add onLogin message warning of ruin status.
- Fix ruined towns still paying upkeep.
  - Somehow they are not storing the hasUpkeep=false when their mayor is
set to NPC.
- Add some more language strings.
- Move delete message to centralized removeTown() method.
- Add remaining hours to the Town status screen.
- Moved the config section to above the war section.
  - Town ruining is not dependant on war being used at all.

* Actual final polishing commit #4

- Switchs out an int representing hours remaining for a ruined town,
with a long representing the time the town went into ruin.
  - Allows for easier calculation of remaining hours in messages.
  - Means we aren't saving every ruined town with remaining hours on
each newHour task.
- Expanded messaging seen on town status screen to inlude how long until
reclamation is possible.

* Make sure reclamation only shows on the status screen if it is an
option.
LlmDl pushed a commit that referenced this pull request Mar 2, 2021
LlmDl added a commit that referenced this pull request Apr 26, 2021
* Trying out eclipse

* Implement perm node for bypassing this

* tweaks and adds limited commands

* adds perm node to plugin.yml

* try to get this to work

* fix maven crying a river because nre was not caught

* why are u crying about the javadocs

* add fixes made by llmdl

* adds checks that were missing

* Change getTownLimitedCommands() to getPlayerOwnedPlotLimdCommands

* remove unused import

* add tests for owntown and townowned nodes

* fix commands being blocked even if they shouldn't

* limited cmds actually work now lol

* requested changes (#1)

* requested changes (#2)

* fix bypass not checking for res township (req. changes)

* remove repeated check left from older commits (req changes)

* mvn exception not caught

* Rebase off master and make a couple polishing changes.

* Cleanup Commit & Requested Changes.

- Requests from Warriorrrr are made.
- Moves town-blocked commands above the personally-owned commands test
to reduce the required returns later on.
- Switches to the PermissionSource hasOwnTown and hasTownOwned
permission tests.

Co-authored-by: Llm Dl <[email protected]>
@Tazzzounet Tazzzounet mentioned this pull request Jan 31, 2022
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