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

Support Worldedit 6.0 API instead of legacy API #579

Merged
merged 3 commits into from
Feb 22, 2015

Conversation

frymaster
Copy link
Member

Fixes #541 #572, #557

Breaks support for older versions of Worldedit. Adds support for newer versions. This is @DarkArc's PR with the minimal changes needed for it to return UUID information instead of name strings. Tested briefly and so far it seems to work...

DarkArc and others added 2 commits September 1, 2014 23:19
…into DarkArc-worldedit-6.0.0

Conflicts:
	src/main/java/de/diddiz/LogBlock/LogBlock.java
	src/main/java/de/diddiz/LogBlock/listeners/ExplosionLogging.java
	src/main/java/de/diddiz/worldedit/LogBlockEditSession.java

Update Worldedit 6.0 hook to support UUIDs
final de.diddiz.LogBlock.Actor lbActor = AtoA(actor);

// Check to ensure the world should be logged
String worldName = event.getWorld().getName();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getWorld() is Marked as @nullable, potential NPE?

Directly get the Bukkit World object of the event, if possible
Move Worldedit World -> Bukkit World conversion to a separate method
@frymaster frymaster merged commit d48d042 into LogBlock:master Feb 22, 2015
@frymaster frymaster deleted the DarkArc-worldedit-6.0.0 branch February 22, 2015 15:15
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.

WorldEdit 6.0 breaks LogBlock
3 participants