Skip to content

Commit

Permalink
chore: license headers and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchwang committed Aug 12, 2022
1 parent bb3b177 commit aef7910
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Core/src/main/java/com/plotsquared/core/events/PlotMoveEvent.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* PlotSquared, a land and world management plugin for Minecraft.
* Copyright (C) IntellectualSites <https://intellectualsites.com>
* Copyright (C) IntellectualSites team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.plotsquared.core.events;

import com.plotsquared.core.player.PlotPlayer;
Expand Down Expand Up @@ -28,10 +46,15 @@ public PlotMoveEvent(final PlotPlayer<?> initiator, final Plot plot, final Plot
this.destination = destination;
}

/**
* @return The destination for the plot to be moved to.
* @since TODO
*/
public Plot destination() {
return destination;
}


@Override
public Result getEventResult() {
return result;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* PlotSquared, a land and world management plugin for Minecraft.
* Copyright (C) IntellectualSites <https://intellectualsites.com>
* Copyright (C) IntellectualSites team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.plotsquared.core.events.post;

import com.plotsquared.core.events.PlotEvent;
Expand All @@ -22,10 +40,18 @@ public PostPlotMoveEvent(final PlotPlayer<?> initiator, final PlotId oldPlot, fi
this.oldPlot = oldPlot;
}

/**
* @return The player who initiated the plot move.
* @since TODO
*/
public PlotPlayer<?> initiator() {
return initiator;
}

/**
* @return The id of the old plot location.
* @since TODO
*/
public PlotId oldPlot() {
return oldPlot;
}
Expand Down

0 comments on commit aef7910

Please sign in to comment.